package com.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.auth.model.system.SysUser;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author tang
 * @since 2023-07-15
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 更新用户状态
     *
     * @author Tangjiachang
     * @date 22:54 2023/7/20
     * @param id
     * @param status
     **/
    void updateStatus(Long id, Integer status);

    /**
     * 根据用户名获取用户
     *
     * @author Tangjiachang
     * @date 22:54 2023/7/20
     * @param username
     * @return SysUser
     **/
    SysUser getUserByUserName(String username);

    /**
     * 获取当前用户基本信息
     *
     * @author Tangjiachang
     * @date 2023/7/25 22:17
     * @param :
     * @return Map<String,Object>
     **/
    Map<String, Object> getCurrentUser();
}
